﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace clock.time
{

    // 文字转换类

    public class WordConversions
    {

        // 数字转汉字

        public static string ToCharacter(string par)
        {
            string strChnNames = "零一二三四五六七八九";
            string strNumNames = "0123456789";
            string result = "";
            foreach (var item in par.ToCharArray())
            {
                result += strChnNames[strNumNames.IndexOf(item)].ToString();
            }
            return result;
        }
    }
}
